import _ from 'lodash'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import { init } from '@quickearth/core'
import App from './App.vue'
import 'reset-css'
import './styles/index.scss'
import VueDevTools from './plugins/vueDevTools'
import validate from '@/libs/validate.js'
import router from '@/router/index'
import 'echarts'
import '@/styles/font/iconfont.js'
import '@/styles/font/iconfont.css'

init('f17d186a2e692c9f6f2e79e48b270012')
const app = createApp(App)
VueDevTools(app)
// 全局lodash
window._ = _
// 全局表单验证
app.config.globalProperties.$validate = validate

// pinia vue储存器与持久化
const pinia = createPinia()
pinia.use(piniaPersist)

app.use(router)
app.use(pinia)
app.mount('#app')
